<div class="bg-light lter b-b wrapper-md ng-scope">
    <h4 class="m-n font-thin" ui-sref="app.ordersDetail">订单详情</h4>
    <button onClick="javascript: history.go(-1);" class="btn-back btn btn-dark btn-sm btn-rounded">
        返回
    </button>
</div>
<div class="wrapper-md" ng-controller="ordersViewCtrl">
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-default">
                <div class="panel-heading font-bold">订单信息</div>
                <div class="panel-body">
                    <div class="col-sm-4">
                        <div class="form-group clearfix m-n" >
                            <div class="col-lg-3 control-label">订单编号</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.orderNumber}}</span>
                            </div>
                        </div>
                        <div class="form-group clearfix m-n" >
                            <div class="col-lg-3 control-label">店铺订单编号</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.shopOrderNumber}}</span>
                            </div>
                        </div>
                        <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">收货信息</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.userName}} {{orders.mobilePhone}} </span>
                            </div>
                        </div>
                        <div class="form-group clearfix m-n" >
                            <div class="col-lg-3 control-label">收货地址</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.address}}</span>
                            </div>
                        </div>
                        <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">物流单号</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.logisticsNumber}}</span>
                            </div>
                        </div>
                        <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">物流名称</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.logisticsName}}</span>
                            </div>
                        </div>
                        <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">备注</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.remark}}</span>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-4">
                        <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">订单金额</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.realMoney | number:2}} RMB</span>
                            </div>
                        </div>
                        <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">运费</div>
                            <div class="col-lg-9">
                                <span class="" ng-if="orders.postage != 0">{{orders.postage | number:2}} RMB</span>
                                <span class="" ng-if="orders.postage == 0">免运费</span>
                            </div>
                        </div>
                  <!--      <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">配送费</div>
                            <div class="col-lg-9">
                                <span class="">0.0 RMB</span>
                            </div>
                        </div>-->
                        <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">优惠金额</div>
                            <div class="col-lg-9">
                                <span class=""style="color: red;">{{orders.couponsMoney | number:2}} RMB</span>
                            </div>
                        </div>
                        <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">支付金额</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.payMoney | number:2}} RMB</span>
                            </div>
                        </div>
                    <!--    <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">提货方式</div>
                            <div class="col-lg-9">
                                <span class="badge  bg-danger">配送</span>
                            </div>
                        </div>-->
                        <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">支付方式</div>
                            <div class="col-lg-9">
                                <span class="badge  bg-success" ng-if="o.payWay == 0">微信</span>
                                <span class="badge bg-danger" ng-if="o.payWay == 1">现金分</span>
                                <span class="badge bg-warning" ng-if="o.payWay == 2">积分</span>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-4">
                        <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">创建时间</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.createdTime}}</span>
                            </div>
                        </div>
                        <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">付款时间</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.payTime}}</span>
                            </div>
                        </div>
                   <!--     <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">配送时间</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.logisticsNumber}}</span>
                            </div>
                        </div>-->
                        <div class="form-group clearfix m-n">
                            <div class="col-lg-3 control-label">发货时间</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.deliveryTime}}</span>
                            </div>
                        </div>
                        <div class="form-group clearfix m-n" >
                            <div class="col-lg-3 control-label">收货时间</div>
                            <div class="col-lg-9">
                                <span class="">{{orders.confirmTime}}</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="table-responsive wrapper-md" ng-controller="ordersGoodsListCtrl">
    <div class="panel panel-default">
            <div class="panel-body">
                    <div class="col-sm-9">
                        <h5 class="m-n font-thin">订单商品</h5>
                        </div>
                    <div class="col-sm-3">
                        <!--<div class="pull-right">-->
                            <!--<button class="btn btn-sm btn-info" ng-click="open()">打印小票</button>-->
                        <!--</div>-->
                    </div>
            <table class="table table-striped b-t b-light">
                <thead>
                <tr>
                    <th>品牌</th>
                    <th>商品图片</th>
                    <th>商品名称</th>
                    <th>类型</th>
                    <th>规格</th>
                    <th>数量</th>
                    <th>价格</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="og in list">
                    <td>{{og.brandName}}</td>
                    <td>
                        <img ng-src="{{app.image.goods}}{{og.fileName}}" err-src="img/error.png" style="height: 70px;width: 70px;">
                    </td>
                    <td>{{og.goodsName}}</td>
                    <td>{{og.typeName}}</td>
                    <td>{{og.standard}}</td>
                    <td>{{og.number}}</td>
                    <td>{{og.price}}</td>
                    <td class="t-btns text-left">
                        <button class="btn btn-sm btn-danger">退货</button>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <footer class="panel-footer">
            <div class="row">
                <div class="col-sm-4 hidden-xs">
                    <!--<button class="btn btn-sm btn-default">批量冻结</button>
                    <button class="btn btn-sm btn-default">批量删除</button>-->
                </div>
                <div class="col-sm-4 text-center">
                    <small class="text-muted inline m-t-sm m-b-sm">显示第 {{startRow}} 至 {{endRow}} 项结果，共 {{totalItems}} 项</small>
                </div>
                <div class="col-sm-4 text-right text-center-xs">
                    <pagination boundary-links="true" total-items="totalItems" ng-model="currentPage"
                                ng-change="pageChanged()" max-size="{{maxPageRow}}" class="pagination-sm m-t-none m-b"
                                previous-text="上一页" next-text="下一页"
                                first-text="首页" last-text="尾页"></pagination>
                </div>
            </div>
        </footer>
    </div>
</div>